package com.xrc.t1;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.setAge(2);
        dog.setColor("black");
        dog.eat("gutou");
        dog.catchThief("小偷");
        System.out.println("年龄"+dog.getAge()+"颜色"+dog.getColor());

        Bird bird=new Bird();
        bird.setColor("黄");
        bird.setAge(20);
        bird.sleep();
        bird.fly();
    }
}
